Walkthrough: Creating and using a variable in a rule

Walkthrough: Creating and using a variable in a rule

This walkthrough will demonstrate how to create a variable and use it in a rule.

Source material

Take, for example, the following source material:

the claimant is eligible for a loan if the claimant’s annual income is more than $15000

Creating the variable

To create a variable to represent "the claimant’s annual income":

  1. In Oracle Policy Modeling, double click the properties file in the Project Explorer to open it for editing.
  2. On the Attributes tab, right-click and select New Attribute...
  3. In the Public name field, enter "claimant_income".
  4. In the Data type drop-down list, select Currency.
  5. In the Text field, enter "the claimant’s annual income".



  6. Click OK to create the variable.

Using the variable in a Word rule

To use this variable in a rule in your Word document:

  1. In Oracle Policy Modeling, double click the Word rules file in the Project Explorer to open it for editing.
  2. On a blank line, type "the claimant is eligible for a loan", then click the Conclusion button on the Oracle Policy Modeling toolbar or use the shortcut key Alt+C.
  3. Place the cursor at the end of this line and press the Enter key to create a condition line.
  4. Type "the claimant's annual income > 15000". Your rule should look like this:

 

the claimant is eligible for a loan if

the claimant's annual income > 15000